package quanlythuvien

class Sach {
	String maSach
	String tenSach
	Date ngayPhatHanh
	String nhaXuatBan
	String tacGia
	float donGia
	LoaiSach maLoaiSach
	int tinhTrang
    static constraints = {
		maSach(blank:false,nullable:false,size:5..50,unique:true)
		tenSach(blank:false, nullable: false, size:3..255)
		nhaXuatBan(nullable:true,size:3..255)
		tacGia(blank:false,nullable:true,size:3..255)
		donGia(nullable:false)
		maLoaiSach(nullable:false)
		ngayPhatHanh(nullable:true)
		tinhTrang(nullable:false)
    }
}
